home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9255 < prev    next >
Encoding:
Text File  |  1996-08-05  |  3.2 KB  |  101 lines

  1. Newsgroups: comp.lang.c
  2. Path: FreeNet.Carleton.CA!ah956
  3. From: ah956@FreeNet.Carleton.CA (Susheel Jalali)
  4. Subject: Make  Error - strange behaviour on SCO OS 3.0
  5. Message-ID: <Dnyyto.Fp8@freenet.carleton.ca>
  6. Sender: ah956@freenet2.carleton.ca (Susheel Jalali)
  7. Organization: The National Capital FreeNet, Ottawa, Ontario, Canada
  8. Date: Fri, 8 Mar 1996 22:08:12 GMT
  9.  
  10.  
  11. I wonder if anybody has encountered a similar behaviour 
  12. from  the "make" utility on SCO or any other Unix? Mine is
  13. a version of SystemV.3 I believe.
  14.  
  15. Here is the description of the error as I run "./make everything" from
  16. the top-level of the source tree.  Once the make gets into the directory
  17. <top>/......./dsap  there are two subdirectories within dsap:  net  and  
  18. common.  The command descriptions for building libnet.a in   
  19. dsap/net/Makefile  are almost identical to those  for building  libcommon.a in
  20. dsap/common/Makefile.  Yet  the former is generated successfully while the 
  21. latter only generates the following error:
  22.  
  23. -------------------------------------
  24. . . . <stuff deleted> . . .  .
  25.     cc -I. -I/usr/include -I../../h -DPEPYPATH  -c netvrsn.c
  26. netvrsn.c
  27.     rm -f libnet.a
  28. ar: creating libnet.a
  29. -rw-r--r--   2 sjalali  group     135456 Mar 07 14:18 libnet.a
  30. QUIPU NET library built normally
  31. Make:  Don't know how to make libcommon.a. Stop.
  32. *** Error code 1
  33. *** Error code 1
  34. -----------------------------------
  35.  
  36. NOTE:  The following are the sections of the 2 Makefile's for the 
  37. corresponding libraries.   I noticed that  commonvrsn.c  was missing 
  38. from dsap/common  so I copied  netvrsn.c  from dsap/net and modified
  39. it just to see if that would help, but it made no difference.  These 
  40. are just one-line source files that define some "char *" version 
  41. string.
  42.  
  43.  
  44. -------------
  45. Makefile from "....../dsap/net"
  46. ----------------
  47. libnet:         libnet.a
  48.  
  49. libnet.a:       netvrsn.o
  50.                 -rm -f $@
  51.                 @$(UTILDIR)make-lib.sh $(SYSTEM) $(ARFLAGS) $@ $(OFILES) \
  52.                         netvrsn.o
  53.                 -@rm -f $(UPDIR)libnet.a $(UPDIR)llib-lnet
  54.                 -@$(LN) libnet.a $(UPDIR)libnet.a
  55.                 -@$(LN) llib-lnet $(UPDIR)llib-lnet
  56.                 -@ls -l $@
  57.                 -@echo "QUIPU NET library built normally"
  58.  
  59. netvrsn.c:      $(OFILES)
  60.                 @$(UTILDIR)version.sh net > $@
  61.  
  62. -------------
  63. Makefile from "....../dsap/common"
  64. -------------------------------------------------------------
  65.  
  66. libcommon:      libcommon.a
  67.  
  68. libcommon.a:    commonvrsn.o
  69.         -rm -f $@
  70.         @$(UTILDIR)make-lib.sh $(SYSTEM) $(ARFLAGS) $@ $(OFILES) \
  71.             commonvrsn.o
  72.         -@rm -f $(UPDIR)libcommon.a $(UPDIR)llib-lcommon
  73.         -@ln libcommon.a $(UPDIR)libcommon.a
  74.         -@$(LN) llib-lcommon $(UPDIR)llib-lcommon
  75.         -@ls -l $@
  76.         -@echo "QUIPU COMMON library built normally"
  77.  
  78. commonvrsn.c:   $(OFILES)
  79.         @$(UTILDIR)version.sh common > $@
  80.  
  81. l-libcommon:    $(CFILES) true
  82.         $(LINT) $(LFLAGS) $(CFILES) $(LLIBS) \
  83.             | grep -v "warning: possible pointer alignment problem"
  84. -------------
  85.  
  86. P.S.  I have ported the same software before to the SGI Indy with its 
  87. IRIX  (aka System V.4) operating system, but I never had this kind of 
  88. error.
  89.  
  90.  
  91. ==========
  92.  
  93. Any suggestions or pointers are welcome,
  94.  
  95. Thanks,
  96.  
  97. PS.-> if you post an answer, please also e-mail to me at
  98. ah956@freenet.carleton.ca
  99.  
  100. Susheel
  101.